//
//  GoViewController.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/7/19.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "GoViewController.h"

#define  PATH @"/Users/xiaoxiangtuji/Desktop/未命名文件夹"

@interface GoViewController ()

@end

@implementation GoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.title = @"走起";
    
    self.navigationController.navigationBar.subviews.firstObject.alpha = 0;
    [self createPlaceHolderImageView];
    // Do any additional setup after loading the view.
}
-(void)createPlaceHolderImageView{
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 49)];
    imageView.image = [UIImage imageNamed:@"zouqi.jpg"];
    [self.view addSubview:imageView];
}
-(void)viewWillAppear:(BOOL)animated{
    
    self.tabBarController.tabBar.hidden = NO;
}

//-(void)sshengchengPlsitwenjian{
//    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
//    manager.responseSerializer = [AFHTTPResponseSerializer serializer];
//    NSString *url = ServerIp@"/pcaApp/list";
//    NSDictionary *parma = @{@"groupBy":@"0"};
//      NSFileManager *fm = [NSFileManager defaultManager];
//
//    NSString *filePath = [PATH stringByAppendingPathComponent:@"Addresss.plist"];
//    [fm createFileAtPath:PATH contents:nil attributes:nil];
//    [manager POST:url parameters:parma progress:^(NSProgress * _Nonnull uploadProgress) {
//
//    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//        NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
//        NSArray *ProvinceArra = jsonDic[@"list"];
//        [ProvinceArra writeToFile:filePath atomically:YES];
//        for (NSDictionary *cityDic in ProvinceArra) {
//            NSString *provinceCode = cityDic[@"provinceCode"];
//            AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
//            manager.responseSerializer = [AFHTTPResponseSerializer serializer];
//            NSString *url = ServerIp@"/pcaApp/list";
//            NSDictionary *parma = @{@"groupBy":@"1",@"provinceCode":provinceCode};
//            [manager POST:url parameters:parma progress:^(NSProgress * _Nonnull uploadProgress) {
//                
//            } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//                NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
//                NSArray *cityArra = jsonDic[@"list"];
//                for (NSDictionary *areaDic in cityArra) {
//                    NSString *provinceCode = areaDic[@"cityCode"];
//                    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
//                    manager.responseSerializer = [AFHTTPResponseSerializer serializer];
//                    NSString *url = ServerIp@"/pcaApp/list";
//                    NSDictionary *parma = @{@"groupBy":@"2",@"cityCode":provinceCode};
//                    [manager POST:url parameters:parma progress:^(NSProgress * _Nonnull uploadProgress) {
//                        
//                    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//                        NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
//                        NSArray *samllArra = jsonDic[@"list"];
//                        
//                    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//                        
//                    }];
//
//                }
//            } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//                
//            }];
//        }
//        
//    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//        
//    }];
//    
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
